﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows;

namespace Cqrs.StateMachineDesigner.Database
{
    public class Spinner
    {
        public static void Load(Grid grid, string message)
        {
            var _datagrid = grid.Children[0];            
            ContentControl cont = new ContentControl();
            cont.Style = (Style)grid.FindResource("LoadingSpinner");
            grid.Children.Clear();
            grid.Children.Add(cont);
        }
    }
}
